package com.example.demo.study.aop;


import org.springframework.stereotype.Component;

@Component
public class Girl implements IBuy{
    @Override
    public String buy() {
        System.out.println("女孩买了一件漂亮的衣服");
        return "衣服";
    }

    @Override
    public double gift(double price) {
        System.out.println(String.format("女孩收到一件%s元的裙子",price));
        return price;
    }
}
